const initialState = {
  user:{
    userId: '',
    account: '',
    password: '',
    nickname: '',
    vip: '',
    headIcon: '',
    phone: '',
    typeId: '',
    userCity: '',
    userCityCode: ''
  }
}
export default function user(state=initialState,action){
	switch(action.type){
		case 'USER_UPDATE_SUCC':
			return {
				user:action.user,
			}
			case 'USER_UPDATE':
			return {
				user: initialState.user,
			}
		case 'USER_UPDATE_ERROR':
			return {
				data: initialState.user,
			}
		default:
			return state;
	}
}